import http from './http';

export const recordByPage = (params: any) => {
  return http.post('/admin-api/dcert/certificate-application/rest-page', params);
};

export const recordUpdate = (data: any) => {
  return http.put('/admin-api/dcert/certificate-application/update', data);
};

export const audit = (data: any) => {
  return http.post('/admin-api/dcert/certificate-application/audit', data);
};

export const issue = (data: any) => {
  return http.post('/admin-api/dcert/certificate-application/issue', data);
};

export const updateBaseInfo = (data: any) => {
  return http.post('/admin-api/dcert/certificate-application/update-person', data);
};

export const createBaseInfo = (data: any) => {
  return http.post('/admin-api/dcert/certificate-application/create-person', data);
};

export const updateOrgBaseInfo = (data: any) => {
  return http.post('/admin-api/dcert/certificate-application/update-org', data);
};
